﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class ShopNPC:NPC
    {
        private string shopInfo;

        public ShopNPC(string name,NPCType type,string shopInfo):base(name,type)
        {
            this.shopInfo = shopInfo;
        }
        public override void Speak()
        {
            Console.WriteLine("你好，你来了！你有什么需要的吗？");
            Console.WriteLine("我是{0},{1}", base.Name, this.shopInfo);
        }
    }
}
